﻿using System.Collections.Generic;
using System.Linq;
using Apps.Web.Core;
using Apps.IBLL.LMS;
using Apps.Locale;
using System.Web.Mvc;
using Apps.Common;
using Apps.IBLL;
using Microsoft.Practices.Unity;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
using System;
using System.Data;
using Apps.Models;

namespace Apps.Web.Areas.LMS.Controllers
{
    public class TestDataNatrueController : BaseController
    {
        [Dependency]
        public ILMS_TESTDATA_CONFIRMEDBLL m_BLL { get; set; }
        ValidationErrors errors = new ValidationErrors();

        [SupportFilter]
        public ActionResult Index()
        {
            return View();
        }

        public JsonResult GetList(GridPager pager, string testCode, string queryState)
        {
            List<V_LMS_RESULT> list = m_BLL.GetV_LMS_RESULT(ref pager, testCode, queryState);
            GridRows<V_LMS_RESULT> grs = new GridRows<V_LMS_RESULT>();
            grs.rows = list;
            grs.total = pager.totalRows;
            return Json(grs);
        }

    }
}
 